package msgcenter

import (
	"context"

	"gitee.com/doraemon1996/bunny/log"
)

var center MessageCenter

func init() {
	center = New()
	center.Init(context.Background())
	center.Start()
	log.ExitHandlerInsert(func() {
		center.Stop()
	})
}
